package com.elitel.common.result;

import com.fasterxml.jackson.annotation.JsonProperty;

public class SrvResult<X> {

    // 错误代码
    @JsonProperty("ErrorCode")
    private int errorCode;

    // 错误信息
    @JsonProperty("ErrorMsg")
    private String errorMsg;

    // 返回值类型
    @JsonProperty("ResultType")
    private int resultType;

    // 堆栈信息
    @JsonProperty("StackMsg")
    private String stackMsg;

    // 返回值
    @JsonProperty("Value")
    private X value;

    public int getErrorCode() {
        return errorCode;
    }

    public String getErrorMsg() {
        return errorMsg;
    }

    public int getResultType() {
        return resultType;
    }

    public String getStackMsg() {
        return stackMsg;
    }

    public X getValue() {
        return value;
    }

    public void setErrorCode(int errorCode) {
        this.errorCode = errorCode;
    }

    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    public void setResultType(int resultType) {
        this.resultType = resultType;
    }

    public void setStackMsg(String stackMsg) {
        this.stackMsg = stackMsg;
    }

    public void setValue(X value) {
        this.value = value;
    }
}
